package com.yserp.project.erp.order.purchorder.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yserp.project.erp.bill.payment.domain.PaymentItem;
import com.yserp.project.erp.order.purchorder.domain.PurchOrder;
import com.yserp.project.erp.order.purchorder.domain.PurchOrderDto;
import com.yserp.project.erp.order.purchorder.domain.PurchOrderVo;

import java.util.List;
import java.util.Map;

/**
 * 采购订单Service接口
 * 
 * @author yserp
 * @date 2022-08-02
 */
public interface IPurchOrderService extends IService<PurchOrder>
{
    /**
     * 查询采购订单
     * 
     * @param id 采购订单主键
     * @return 采购订单
     */
    public PurchOrderVo selectPurchOrderById(Long id);

    /**
     * 查询采购订单列表
     * 
     * @param purchOrder 采购订单
     * @return 采购订单集合
     */
    public List<PurchOrder> selectPurchOrderList(PurchOrder purchOrder);

    /**
     * 新增采购订单
     * 
     * @param purchOrder 采购订单
     * @return 结果
     */
    public int insertPurchOrder(PurchOrderDto purchOrderDto);

    /**
     * 修改采购订单
     * 
     * @param purchOrder 采购订单
     * @return 结果
     */
    public int updatePurchOrder(PurchOrderDto purchOrderDto);

    /**
     * 批量删除采购订单
     * 
     * @param ids 需要删除的采购订单主键集合
     * @return 结果
     */
    public int deletePurchOrderByIds(String ids);

    /**
     * 删除采购订单信息
     * 
     * @param id 采购订单主键
     * @return 结果
     */
    public int deletePurchOrderById(Long id);

    /**
     * 批量审核采购订单
     *
     * @param ids 采购订单主键集合
     * @return 结果
     */
    public int auditPurchOrderByIds(String ids);

    /**
     * 通过供应商Id查询采购单数据
     * @param supplierId
     * @return
     */
    public List<PaymentItem> selectPurchOrderListBySupplierId(Long supplierId);
}
